<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml" 
	  xmlns:ui="http://java.sun.com/jsf/facelets" 
	  xmlns:h="http://java.sun.com/jsf/html" 
	  xmlns:f="http://java.sun.com/jsf/core" 
	  xmlns:p="http://primefaces.org/ui">
	<ui:composition template="../template/template.xhtml">
		<ui:define name="corpo-da-pagina"> 
			<!-- <h:outputText value="#{msg.reino_title}"/> -->
			<h:form id="formFgts">
				<h:body>
					<p:commandButton id="listar" value="Listar" action="#{relatorioExtratoAplicacoesMB.listar}" update="formFgts" ajax="false" />
			     	<p:panel id="panelFgts" header="#{msg.reino_title}" rendered="#{relatorioExtratoAplicacoesMB.rendTabela}" >
			    		<p:dataTable id="tabelaFgts" var="fgts" value="#{relatorioExtratoAplicacoesMB.listVOs}">
				    		<p:column headerText="Mes/Ano" style="text-align: right;">
				    			<h:outputText value="#{fgts.mesAno}"/>
				    		</p:column>
				    		<p:column headerText="Inicial" style="text-align: right;">
				    			<h:outputText value="#{fgts.saldoInicial}">
				    				<f:convertNumber currencySymbol="R$" type="currency"/>
				    			</h:outputText>  
				    		</p:column>
				    		<p:column headerText="Depósito" style="text-align: right;">
				    			<h:outputText value="#{fgts.deposito}">
				    				<f:convertNumber currencySymbol="R$" type="currency"/>
				    			</h:outputText>
				    		</p:column>
				    		<p:column headerText="Juros" style="text-align: right;">
				    			<h:outputText value="#{fgts.juros}">
				    				<f:convertNumber currencySymbol="R$" type="currency"/>
				    			</h:outputText>
				    		</p:column>
				    		<p:column headerText="Saque" style="text-align: right;">
				    			<h:outputText value="#{fgts.saque}">
				    				<f:convertNumber currencySymbol="R$" type="currency"/>
				    			</h:outputText>
				    		</p:column>
				    		<p:column headerText="Taxa" style="text-align: right;">
				    			<h:outputText value="#{fgts.taxa}">
				    				<f:convertNumber pattern="#0.0000" locale="pt_BR"/>
				    			</h:outputText>
				    		</p:column>
				    		<p:column headerText="Final" style="text-align: right;">
				    			<h:outputText value="#{fgts.saldoFinal}">
				    				<f:convertNumber currencySymbol="R$" type="currency"/>
				    			</h:outputText>
				    		</p:column>
			    		</p:dataTable>
			    		<br />
			    		<p:panelGrid columns="2">  
						    <h:outputLabel for="preriodo" value="Periodo em meses: " />  
						    <h:outputText value="#{relatorioExtratoAplicacoesMB.periodoEmMeses}"/>
						    
						    <h:outputLabel for="totalDepositos" value="Total Depósitos: " />  
						    <h:outputText value="#{relatorioExtratoAplicacoesMB.totalDeposito}" style="text-align: right;">
						    	<f:convertNumber currencySymbol="R$" type="currency"/>
						    </h:outputText>
						    
						    <h:outputLabel for="totalJuros" value="Total Juros: " />  
						    <h:outputText value="#{relatorioExtratoAplicacoesMB.totalJuros}" style="text-align: right;">
						    	<f:convertNumber currencySymbol="R$" type="currency"/>
						    </h:outputText>  
						    
						    <h:outputLabel for="totalSaque" value="Total Saques: " />
						    <h:outputText value="#{relatorioExtratoAplicacoesMB.totalSaque}" style="text-align: right;">
						    	<f:convertNumber currencySymbol="R$" type="currency"/>
						    </h:outputText>
						    
						    <h:outputLabel for="taxaPeriodo" value="Taxa Periodo: " />  
						    <h:outputText value="0,0000" style="text-align: right;" />  
						</p:panelGrid> 
						
		    		</p:panel>
			  	</h:body>
			</h:form>
		</ui:define>
	 </ui:composition> 
</html>